#include "FreeRTOS.h"
#include "task.h"
#include "main.h"
#include "cmsis_os.h"
#include "ui_app.h"


osThreadId_t start_task_handle;
const osThreadAttr_t start_task_attributes = {
  .name = "startTask",
  .priority = (osPriority_t) osPriorityNormal,
  .stack_size = 128 * 4
};


void start_task(void *argument)
{
    hw_task_init();
    ui_task_init();
    osThreadExit();
}


/**
  * @brief  FreeRTOS initialization
  * @param  None
  * @retval None
  */
void os_init(void) 
{
    start_task_handle = osThreadNew(start_task, NULL, &start_task_attributes);

}

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
